package com.tingyuge.mongo.controller;

import com.sun.org.apache.regexp.internal.RE;
import com.tingyuge.mongo.entity.Resume;
import com.tingyuge.mongo.service.ResumeService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xiaodao
 * @version 1.0
 * @description
 */
@RestController
@RequestMapping("/resume")
@RequiredArgsConstructor
public class ResumeController {

    private final ResumeService resumeService;

    @RequestMapping(value = "/save")
    public void save(@RequestBody Resume resume){

        resumeService.save(resume);
    }
}
